package com.cxd.springcloud.myhand;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.cxd.springcloud.vo.CommonResult;

public class CustomBlockHandler {

    public static CommonResult blockHandlerException(BlockException exception) {
        return new CommonResult("444", "global 通过自定义类限流 blockHandlerException --> 1");
    }

    public static CommonResult blockHandlerException2(BlockException exception) {
        return new CommonResult("444", "global 通过自定义类限流 blockHandlerException --> 2");
    }
}
